﻿# 设置 CMake 最低版本要求
cmake_minimum_required (VERSION 3.10)

# 设置项目名称和语言
project(ThreadPool VERSION 1.0 LANGUAGES CXX)

# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 设置项目目录变量
set(INCLUDE_PATH ${PROJECT_SOURCE_DIR}/include)
set(SOURCE_PATH ${PROJECT_SOURCE_DIR}/src)

# 向编译器添加头文件搜索路径（即告诉编译器去哪里找 .h/ .hpp文件）
include_directories(${INCLUDE_PATH})

# 添加子目录
add_subdirectory(src)
add_subdirectory(tests)